package common;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;

/**
 * Created by Gerardo on 12/7/13.
 */
public class ProgramFactory {

    public static Program create(final Class<? extends Program> clazz, final Module module) {
        Injector injector = Guice.createInjector(module);
        return injector.getInstance(clazz);
    }
}
